package com.wanglj.model.dos;

import java.io.Serializable;
import java.util.UUID;

/**
 * @author 955
 * @title 电影票实体
 * @date 2020/11/30 17:10
 */
public class TicketDO implements Serializable {
    private String id;
    private Integer num;
    private Integer price;
    private String name;

    public TicketDO( Integer num, Integer price, String name) {
        this.id = UUID.randomUUID().toString();
        this.num = num;
        this.price = price;
        this.name = name;
    }

    @Override
    public String toString() {
        return "TicketDO{" +
                "id='" + id + '\'' +
                ", num=" + num +
                ", price=" + price +
                ", name='" + name + '\'' +
                '}';
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public Integer getNum() {
        return num;
    }

    public Integer getPrice() {
        return price;
    }

    public String getName() {
        return name;
    }
}
